'use strict'

const mongoose = require('mongoose')

const { Schema } = mongoose

// 退款
const Refundment = mongoose.model('Refundment', new Schema({
  order: Schema.Types.ObjectId, // 订单号 -> Order
  status: {_id: Schema.Types.ObjectId, name: String}, // 退款状态 -> RefundmentStatus
  manager: [{_id: Schema.Types.ObjectId, name: String}], // 负责人 -> Manager
}))

module.exports = Refundment